class Config:
    SECRET_KEY = 'zcg'
    SQLALCHEMY_TRACK_MODIFICATIONS = True

    @staticmethod
    def init_app(app):
        #配置参数初始化
        pass


class DevelopmentConfig(Config):
    #数据库连接
    SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:1614030617zcg@127.0.0.1:3306/shop'
    DEBUG = True
    SQLALCHEMY_ECHO=True

config = {
    'default': DevelopmentConfig
}
